#if !defined (__R2_SER2NET_H__)
#define __R2_SER2NET_H__

#define MAX_BUFF 512

#define CONFIG_R2       1
#define CONFIG_R2_ACTION_LOG    1

#ifdef CONFIG_R2_USE
#define R2_SER2NET_LOG_FILE	    "r2_ser2net.lo"
#else
#define R2_SER2NET_LOG_FILE        "/var/log/r2_ser2net.log"
#endif

/* Mysql macro */
#define R2_MYSQL_HOST                   "10.55.192.107"
#define R2_MYSQL_USER                   "dasan"
#define R2_MYSQL_PASS                   "dasan123$%^"
#define R2_MYSQL_DATABASE               "consoleserver"

#define R2_PORT_MAX             50      /* Local port and remote port */
#define R2_PORT_REMOTE_MAX      10      /* Remote port */

#define R2_CONTROL_PORT         10000

#define R2_MYSQL_FIELD_STR      "(id, time, port, action, server, cause)"
#define R2_MYSQL_FIELD_GET_STR  "port,server"
#define R2_MYSQL_TABLE                  "switch"

#if 1
#define R2_SER2NET_HOST_HANOI           "10.55.192.107"
#else
#define R2_SER2NET_HOST_HANOI           "10.72.0.10"
#endif

#define R2_SER2NET_USER_DISCONNECT      "0.0.0.0"
#define R2_SER2NET_USER_IP_FIELD        "user_ip"

#endif /*__R2_SER2NET_H__*/
